package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.services.infrastructure.dto.response.EnterpriseCarTransferDto;
import org.apache.ibatis.annotations.Param;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.EnterpriseCarTransferBean;

import java.util.List;
import java.util.Map;

public interface EnterpriseCarTransferMapper extends RootMapper<EnterpriseCarTransferBean> {

	/**
	 * 根据车架号获取过户信息
	 * @param vin
	 * @return
	 */
	EnterpriseCarTransferBean getEnterpriseCarTransferByVin(@Param("vin") String vin);

	/**
	 * 根据过户时间查询列表
	 * @param params
	 * @return
	 */
	List<EnterpriseCarTransferBean> getBytransferTime(@Param("params") Map<String, Object> params);

	/**
	 * 根据carId、orderCode获取过户列表
	 * @param list
	 * @return
	 */
    List<EnterpriseCarTransferBean> getByDto(@Param("list") List<EnterpriseCarTransferDto> list);
}